<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">



    <div class="form-group">
        <label for="c-name" class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label for="c-thumb" class="control-label col-xs-12 col-sm-2">图片:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-thumb" class="form-control" size="35" name="row[imgs]" type="text" value="{$row.imgs}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-image" class="btn btn-danger plupload" data-input-id="c-thumb" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                   <!-- <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-thumb" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>-->
                </div>
                <span class="msg-box n-right" for="c-thumb"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-image"></ul>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">参与项目:</label>
        <input type="hidden" id="oldproids" value="{$row.proids}" />
        <div class="col-xs-12 col-sm-8">

            <select id="proids" data-rule="required" class="form-control selectpicker" name="proids[]" multiple >
                {foreach name="prolist" item="vo"}
                <option value="{$vo.id}">{$vo.title}</option>
                {/foreach}
            </select>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('intro')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-intro" class="form-control editor " rows="5" name="row[intro]" cols="50">{$row.intro|htmlentities}</textarea>
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Goodat')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-Goodat" class="form-control editor " rows="5" name="row[goodat]" cols="50">{$row.goodat|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('jigou')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-jigou" class="form-control editor " rows="5" name="row[jigou]" cols="50">{$row.jigou|htmlentities}</textarea>
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('field')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-field" class="form-control editor " rows="5" name="row[field]" cols="50">{$row.field|htmlentities}</textarea>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('education')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-education" class="form-control editor " rows="5" name="row[education]" cols="50">{$row.education|htmlentities}</textarea>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('honour')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-honour" class="form-control editor " rows="5" name="row[honour]" cols="50">{$row.honour|htmlentities}</textarea>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('researcher')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-researcher" class="form-control editor " rows="5" name="row[researcher]" cols="50">{$row.researcher|htmlentities}</textarea>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('project')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-project" class="form-control editor " rows="5" name="row[project]" cols="50">{$row.project|htmlentities}</textarea>
        </div>
    </div>








    <div class="form-group">
        <label for="c-editor" class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>

        <div class="col-xs-12 col-sm-8">
            <textarea name="row[content]" id="c-editor" cols="60" rows="5" class="form-control editor">{$row.content|htmlentities}</textarea>
        </div>

    </div>





    <div class="form-group">
        <label for="c-editor" class="control-label col-xs-12 col-sm-2">{:__('Remark')}:</label>

        <div class="col-xs-12 col-sm-8">
            <textarea name="row[remark]" id="c-Remark" cols="60" rows="5" class="form-control">{$row.remark|htmlentities}</textarea>
        </div>

    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[status]', ['normal'=>__('Normal'), 'hidden'=>__('Hidden')], $row['status'])}
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
